package com.kxmall.huishou.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.AddGroup;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 用户任务完成记录业务对象 hs_user_task_complete
 *
 * @author kxmall
 * @date 2023-11-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HsUserTaskCompleteBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userId;

    /**
     * 任务id
     */
    @NotNull(message = "任务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 获得积分数
     */
    @NotNull(message = "获得积分数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal integral;

    /**
     * 获得碳币数
     */
    @NotNull(message = "获得碳币数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal carbonScore;


}
